package com.fowo.api.model.warehouse;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.EnumsString;
import javax.validation.constraints.*;
import lombok.Data;

/** 仓位 导入导出辅助模型 */
@Data
public class WarehouseBinExcelPo {

  @Size(max = 50, message = "仓位名称长度不能超过20")
  @ExcelProperty(value = "仓位名称")
  private String name;

  @Size(max = 50, message = "仓位编码长度不能超过20")
  @ExcelProperty(value = "仓位编码")
  private String storageBin;

  @EnumsString(
    value = { "启用", "禁用" },
    message = "状态的可用值为 “启用”, “禁用” 其中之一"
  )
  @Size(max = 50, message = "状态长度不能超过20")
  @ExcelProperty(value = "状态")
  private String status;

  @Size(max = 50, message = "设置绑定sku(最大能绑定几个sku)长度不能超过20")
  @ExcelProperty(value = "设置绑定sku(最大能绑定几个sku)")
  private Integer availableSku;

  @ExcelProperty(value = "已经绑定的数量")
  private Integer usedQuantity;

  @Size(max = 50, message = "仓位类型长度不能超过20")
  @ExcelProperty(value = "仓位类型")
  private String type;
}
